import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css';

import App from './App.vue'
import router from './router'


//引入初始化样式文件
import '@/styles/common.scss'

import { lazyPlugin } from './directives'
import { componentsPlugin } from './components'

const app = createApp(App)

const pinia = createPinia()
pinia.use(piniaPluginPersistedstate)



app.use(pinia)
app.use(router)
app.use(lazyPlugin)
app.use(componentsPlugin)
app.use(ElementPlus)





app.mount('#app')


// 启用 Vue Devtools
    import('@vue/devtools').then((devtools) => {
        devtools.connect(/* host, port */);
    })


